/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Primitive;

import Common.IUnitHolder;
import java.awt.Point;
import java.awt.Shape;

/**
 *
 * @author Администратор
 */
public class Rectangle extends Primitive {

    java.awt.Rectangle rectangle;

    public Rectangle(IUnitHolder unitHolder, int x, int y) {
        super(unitHolder,x,y);
        rectangle = new java.awt.Rectangle();
        rectangle.setLocation(new Point(this.getPosition().x, this.getPosition().y));
    }

    public Shape getShape() {
       return this.rectangle;
    }
}
